Your tween component must process kTweenerInitializeSelect requests from the Component Manager. Listing 21 shows a function, TweenerInitialize, for processing this request. In this example, the function simply returns. In a more complex example, the function might allocate storage to be used when generating a tween media value.
Listing 21 Function that initializes a tween component
pascal ComponentResult TweenerInitialize (
TweenerComponent tc,
QTAtomContainer container,
QTAtom tweenAtom,
QTAtom dataAtom)
{
return noErr;
}
| Previous | Chapter Contents | Chapter Top | Next |